Skip to content

Rslib configuration harness#4451

Draft
ScriptedAlchemy wants to merge 46 commits intomainfrom
cursor/rslib-configuration-harness-cdc5
Draft

Rslib configuration harness#4451
ScriptedAlchemy wants to merge 46 commits intomainfrom
cursor/rslib-configuration-harness-cdc5

Conversation

@ScriptedAlchemy
Copy link
Member

@ScriptedAlchemy ScriptedAlchemy commented Feb 16, 2026

Description

This PR introduces a monorepo harness for rslib, inspired by rstest's project orchestration capabilities. It enables the definition and execution of rslib build commands across multiple projects within a monorepo structure.

Key features include:

  • A root rslib.harness.config.mjs for declaring project entries (paths, globs, inline configs).
  • A recursive project resolver to handle nested project configurations.
  • A CLI runner (scripts/rslib-harness.mjs) to execute rslib build across resolved projects.
  • Support for project filtering (--project) and dry-run/list modes.
  • Designed to be additive, preserving existing Nx package targets.

Related Issue

This implementation addresses the user's request to design a monorepo harness for rslib similar to rstest's capabilities, as discussed in the conversation.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Open in Cursor Open in Web

Single-PR Review Guide (No Additional PRs)

This PR will remain a single PR. Improvements are being done in-place (no stacked or follow-up PR splitting).

Suggested Review Order

  1. Core behavior/runtime changes first.
  2. Build/tooling and workflow updates second.
  3. Docs/examples/app fixtures last.

In-Place Scope Trim Checklist

  • Remove unrelated churn not required for this PR goal.
  • Keep lockfile and generated changes only when strictly needed.
  • Confirm acceptance criteria and regression tests are explicit in this PR.
  • Resolve merge conflict status and required CI checks before final re-review.

@cursor
Copy link

cursor bot commented Feb 16, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2026

⚠️ No Changeset found

Latest commit: 41149ed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Feb 16, 2026

Deploy Preview for module-federation-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 41149ed
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69b06181c375ad0008dbdb13

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 16, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/@module-federation/devtools@6f78b59

@module-federation/cli

pnpm add https://pkg.pr.new/@module-federation/cli@6f78b59

create-module-federation

pnpm add https://pkg.pr.new/create-module-federation@6f78b59

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/@module-federation/data-prefetch@6f78b59

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/@module-federation/dts-plugin@6f78b59

@module-federation/enhanced

pnpm add https://pkg.pr.new/@module-federation/enhanced@6f78b59

@module-federation/error-codes

pnpm add https://pkg.pr.new/@module-federation/error-codes@6f78b59

@module-federation/esbuild

pnpm add https://pkg.pr.new/@module-federation/esbuild@6f78b59

@module-federation/managers

pnpm add https://pkg.pr.new/@module-federation/managers@6f78b59

@module-federation/manifest

pnpm add https://pkg.pr.new/@module-federation/manifest@6f78b59

@module-federation/metro

pnpm add https://pkg.pr.new/@module-federation/metro@6f78b59

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnc-cli@6f78b59

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/@module-federation/metro-plugin-rnef@6f78b59

@module-federation/modern-js

pnpm add https://pkg.pr.new/@module-federation/modern-js@6f78b59

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/@module-federation/modern-js-v3@6f78b59

@module-federation/native-federation-tests

pnpm add https://pkg.pr.new/@module-federation/native-federation-tests@6f78b59

@module-federation/native-federation-typescript

pnpm add https://pkg.pr.new/@module-federation/native-federation-typescript@6f78b59

@module-federation/nextjs-mf

pnpm add https://pkg.pr.new/@module-federation/nextjs-mf@6f78b59

@module-federation/node

pnpm add https://pkg.pr.new/@module-federation/node@6f78b59

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/@module-federation/retry-plugin@6f78b59

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/@module-federation/rsbuild-plugin@6f78b59

@module-federation/rspack

pnpm add https://pkg.pr.new/@module-federation/rspack@6f78b59

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/@module-federation/rspress-plugin@6f78b59

@module-federation/runtime

pnpm add https://pkg.pr.new/@module-federation/runtime@6f78b59

@module-federation/runtime-core

pnpm add https://pkg.pr.new/@module-federation/runtime-core@6f78b59

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/@module-federation/runtime-tools@6f78b59

@module-federation/sdk

pnpm add https://pkg.pr.new/@module-federation/sdk@6f78b59

@module-federation/storybook-addon

pnpm add https://pkg.pr.new/@module-federation/storybook-addon@6f78b59

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/@module-federation/third-party-dts-extractor@6f78b59

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/@module-federation/treeshake-frontend@6f78b59

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/@module-federation/treeshake-server@6f78b59

@module-federation/typescript

pnpm add https://pkg.pr.new/@module-federation/typescript@6f78b59

@module-federation/utilities

pnpm add https://pkg.pr.new/@module-federation/utilities@6f78b59

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/@module-federation/webpack-bundler-runtime@6f78b59

@module-federation/bridge-react

pnpm add https://pkg.pr.new/@module-federation/bridge-react@6f78b59

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/@module-federation/bridge-react-webpack-plugin@6f78b59

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/@module-federation/bridge-shared@6f78b59

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/@module-federation/bridge-vue3@6f78b59

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/@module-federation/inject-external-runtime-core-plugin@6f78b59

commit: 6f78b59

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

Bundle Size Report

1 package(s) changed, 40 unchanged.

Package Total dist Delta ESM gzip Delta
runtime 16.6 kB -13 B (-0.1%) 616 B no change

Total dist: 6.38 MB (-13 B (-0.0%))
Total ESM gzip: 79.2 kB (no change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants